package com.corpcredit.webapp.action;

import java.io.Serializable;
import java.util.List;

import com.corpcredit.webapp.action.BasePage;
import com.corpcredit.model.WorkQueue;
import com.corpcredit.service.GenericManager;

public class WorkQueueList extends BasePage implements Serializable {
    private GenericManager<WorkQueue, Long> workQueueManager;

    public void setWorkQueueManager(GenericManager<WorkQueue, Long> workQueueManager) {
        this.workQueueManager = workQueueManager;
    }

    public WorkQueueList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getWorkQueues() {
        return sort(workQueueManager.getAll());
    }
}

